package com.caiheng.api.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.caiheng.api.entity.wxuser.User;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "order_appraise")
public class OrderAppraise implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Long orderId;

//    private Integer shopId;

    private Integer productId;

    private Integer skuId;

    private String content;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer praiseStar;

    private Integer isAnonymous;

    private Integer state;

    private String keyWord;

    private Integer appraiseType;

    @TableField(exist = false)
    private String skuName;
    @TableField(exist = false)
    private List<OrderAppraiseImg> imgs;
    @TableField(exist = false)
    private User user;
}
